home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls008.2.Z / tls008.2 / tmp / init.demo
Encoding:
Text File  |  1991-04-06  |  919 b   |  56 lines

  1. :
  2. #
  3. #    init.demo - Corollary Multiprocessor Demo Software
  4. #               custom installation script
  5. #
  6. #    Copyright (C) Corollary, Inc., 1986, 1987, 1988, 1989, 1990, 1991.
  7. #    All Rights Reserved.
  8. #    This Module contains Proprietary Information of
  9. #    Corollary, Inc., and should be treated as Confidential.
  10. #
  11.  
  12. PRODUCT="Corollary Multiprocessor Demo"
  13.  
  14. PATH=/etc:/bin:/usr/bin
  15.  
  16. : ${OK=0} ${FAIL=1} ${STOP=10} ${HALT=11}
  17.  
  18. TMP="/tmp/init.demo  /tmp/perms"
  19.  
  20. error()
  21. {
  22.     echo "\nError: $*\n" >&2
  23.     echo "
  24. Press <Return> to continue\c"
  25.     read x
  26.     rm -rf $TMP
  27.     exit $FAIL
  28. }
  29.  
  30. exitok()
  31. {
  32.     echo >&2
  33.     rm -rf $TMP
  34.     exit $OK
  35. }
  36.  
  37. catch()
  38. {
  39.     error "installation interrupted by user"
  40. }
  41.  
  42. #
  43. # begin main()
  44. #
  45. trap catch 1 2 3 15
  46.  
  47. echo "\n$PRODUCT 1.0.0 software installation." >&2
  48. echo "\nCopyright (C) Corollary, Inc., 1986-91." >&2
  49. echo "All Rights Reserved." >&2
  50.  
  51. chown bin /etc/perms/demo
  52. chgrp bin /etc/perms/demo
  53. chmod 644 /etc/perms/demo
  54.  
  55. exitok
  56.